package com.clement.controller;

import org.springframework.web.bind.annotation.RequestAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Clement on 2017/4/6.
 */
@RestController
public class HelloController {

    @RequestMapping(value = "hello/")
    public String hello(@RequestAttribute String name, @RequestAttribute String computer){
        return "hello " + name + " your computer brand is " + computer;
    }
}
